package service.impl;

import dao.impl.UserDaoImpl;
import entity.Account;
import entity.User;
import service.IUserService;

public class UserServiceImpl implements IUserService{
	private UserDaoImpl udi = new UserDaoImpl();

	@Override
	public boolean save(User user) {
		return udi.save(user);
	}

	@Override
	public boolean delete(User user) {
		return udi.delete(user);
	}

	@Override
	public boolean update(User user) {
		return udi.update(user);
	}

	@Override
	public User selectById(int Id) {
		return udi.selectById(Id);
	}

	@Override
	public User[] selectAll() {
		return udi.selectAll();
	}
	
	@Override
	public boolean login(Account account) {
		return udi.login(account);
	}

	@Override
	public boolean registered(User user, String password) {
		return udi.registered(user, password);
	}

	@Override
	public boolean deposit(int money) {
		return udi.deposit(money);
	}

	@Override
	public boolean withdrawals(int money) {
		return udi.withdrawals(money);
	}

	@Override
	public boolean transfer(int money, String accountNumber) {
		return udi.transfer(money, accountNumber);
	}

	@Override
	public User selectInformation() {
		return udi.selectInformation();
	}

}
